package com.hsj.busmanager.mapper;

import com.hsj.busmanager.api.UserBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserBean record);

    int insertSelective(UserBean record);

    UserBean selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserBean record);

    int updateByPrimaryKey(UserBean record);

    UserBean selectByUserNameAndPassWd(String userName, String password);

    List<UserBean> getDriverPage(Integer start, int limit, @Param("user") UserBean user);

    int getDriverCount(@Param("user")UserBean user);

    List<UserBean> getDriverList();
}